> Since the date is taken from the RMC sentence of the PREVIOUS second, the
> current implementation writes a wrong date when the time jumps from 235959
> to 000000. This can be fixed by the following patch:
>
curr_waypt->speed = speed*kts2mps;
if (curr_waypt->course<=0)
curr_waypt->course = course;
+ /* The change of date wasn't recorded when
+ * going from 235959 to 000000. */
+ curr_waypt->creation_time = mkgmtime(&tm);
}
return;
}